home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / C⁄C++ OS8 / Everything / DModalTextData.h < prev    next >
Encoding:
Text File  |  1998-09-06  |  1.5 KB  |  68 lines  |  [TEXT/CWIE]

  1. // DModalTextData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7.  
  8. const long    idSmall2        = 'Sma2';
  9. const long    idLarge2        = 'Lar2';
  10. const long    idX12346        = 'X146';
  11. const long    idX12345e7        = 'X127';
  12. const long    idPassword2        = 'Pas2';
  13. const long    idDate2        = 'Dat2';
  14. const long    idTime2        = 'Tim2';
  15. const long    idStyled2        = 'Sty2';
  16.  
  17. class AMEngine;
  18.  
  19. //----------
  20. class DModalTextData : public AMSignaler {
  21. public:
  22.                 DModalTextData ();
  23.     virtual        ~DModalTextData ();
  24.  
  25. public:
  26.     void        ReadFromFile    (AMEngine*        engine);
  27.     void        WriteToFile        (AMEngine*        engine);
  28.  
  29. public:
  30.     StringPtr    GetSmall2    (Str255        outStr = nil) const;
  31.     void        SetSmall2    (Str255        inValue);
  32.     void        SetSmall2    (CharsHandle    inValue);
  33.  
  34.     StringPtr    GetLarge2    (Str255        outStr = nil) const;
  35.     void        SetLarge2    (Str255        inValue);
  36.     void        SetLarge2    (CharsHandle    inValue);
  37.  
  38.     SInt32        GetX12346 () const;
  39.     void        SetX12346    (SInt32        inValue);
  40.  
  41.     double        GetX12345e7 () const;
  42.     void        SetX12345e7    (double        inValue);
  43.  
  44.     StringPtr    GetPassword2    (Str255        outStr = nil) const;
  45.     void        SetPassword2    (Str255        inValue);
  46.     void        SetPassword2    (CharsHandle    inValue);
  47.  
  48.     LongDateRec        GetDate2 () const;
  49.     void        SetDate2    (LongDateRec        inValue);
  50.  
  51.     LongDateRec        GetTime2 () const;
  52.     void        SetTime2    (LongDateRec        inValue);
  53.  
  54.     StringPtr    GetStyled2    (Str255        outStr = nil) const;
  55.     void        SetStyled2    (Str255        inValue);
  56.     void        SetStyled2    (CharsHandle    inValue);
  57.  
  58. protected:
  59.     Str255        mSmall2;
  60.     Str255        mLarge2;
  61.     SInt32        mX12346;
  62.     double        mX12345e7;
  63.     Str255        mPassword2;
  64.     LongDateRec        mDate2;
  65.     LongDateRec        mTime2;
  66.     Str255        mStyled2;
  67. };
  68.